package com.liu.ysy.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class TaskService {

    @Scheduled(cron = "0/2 * * * * *")
    public  void getTokenTask (){

        log.info("定时获取token任务");

    }
    @Scheduled(cron = "0/2 * * * * *")
    public  void getTask01 (){

        log.info("做饭一号");

    }
    @Scheduled(cron = "0/2 * * * * *")
    public  void getTask02 (){

        log.info("做菜二号");

    }

    @Scheduled(cron = "0/2 * * * * *")
    public  void getTask03 (){

        log.info("傻逼3号");

    }


}
